package zy;

import java.util.Scanner;

public class sc {
    public static void main(String[] args) {
        int a, b, c, d, e, f;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个五位数");
        int sz = sc.nextInt();
        a = sz / 10000;
        b = (sz /10000)%10;
        c = (sz/100)%10;
        d =(sz/10)%10;
        e = sz%10;
        f=a+b+c+d+e;
        System.out.println("万"+a);
        System.out.println("千"+b);
        System.out.println("百"+c);
        System.out.println("十"+d);
        System.out.println("个"+e);
        System.out.println("和"+f);
    }
}
